Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
- if(!success) {
- for(new i; i < sizeof(gVehicleNames); i++) {
- if(strlen(cmdtext) > 2 && !strcmp(cmdtext[1], gVehicleNames[i], true)) {
- delete_free_space(cmdtext);
- CreatePlayerVehicle(playerid, i + 400);
- format(text_, sizeof(text_), "Pojazd o nazwie {FF0000}%s{FFFFFF} zostaje utworzony.", gVehicleNames[i]);
- SendClientMessage(playerid, -1, text_);
- return true;
- }
- }
- 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