Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandReceived(playerid, cmdtext[]) {
- if(GetVehicleModelIDByName(cmdtext) != -1) {
- Vehicle[playerid] = GetPlayerVehicleID(playerid);// car = GetPlayerVehicleID(playerid);
- }
- if(Vehicle[playerid] == -1) return SendClientMessage(playerid, -1, "Zła nazwa pojazdu.");
- str_del_free_space(cmdtext);
- CreatePlayerVehicle(playerid, GetVehicleModelIDByName(cmdtext));
- return false;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
- new text[100];
- if(!success) {
- format(text, sizeof(text), "Na serwerze nie ma takiej komendy jak %s!", cmdtext);
- SendClientMessage(playerid, -1, text);
- }
- printf("%s wpisuje komendę: %s", PlayerName(playerid), cmdtext);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement