Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- CMD:Toys(playerid, params[])
- {
- new carid = GetPlayerVehicleID(playerid);
- if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need to attach a trailer!!!");
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
- {
- ToysJob[playerid] = 1;
- new name[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "* %s Distribute Toys.", name );
- SendClientMessageToAll(COLOR_AQUA, string);
- SetPlayerCheckpoint(playerid,1389.2355,-1648.4885,13.0308 ,4);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points Red on mapa!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer *!");
- return 1;
- }
- SendClientMessage(playerid, COLOR_RED,"Only Toys car Start jobs!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment