Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUBLIC OnPlayerCommandText(int playerid, const char * cmdtext) {
- char str[128];
- if(strcmp_n(cmdtext, "/yo")) {
- char Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Name, sizeof(Name));
- char MSG[128];
- sprintf(MSG, "Yo, %s", Name);
- SendClientMessage(playerid, -1, MSG);
- return true;
- }
- if(strcmp_n(cmdtext, "/infernus")) {
- float Pos[4];
- GetPlayerPos(playerid, &Pos[0], &Pos[1], &Pos[2]);
- GetVehicleZAngle(GetPlayerVehicleID(playerid), &Pos[3]);
- CreateVehicle(411, Pos[0], Pos[1], Pos[2], Pos[3], -1, -1, 1500);
- SendClientMessage(playerid, -1, "Tworzysz Infernusa.");
- return true;
- }
- if((Vehicle[playerid] = GetVehicleModelIDFromName(cmdtext)) != -1) {
- str_del_free_space(cmdtext);
- CreatePlayerVehicle(playerid, GetVehicleModelIDFromName(cmdtext));
- return false;
- }
- else return sprintf(str, "Komenda %s nie istnieje.", cmdtext), SendClientMessage(playerid, -1, str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement