1
mIRC/pawn Scripting / Re: How to add properties and pickup's for them ?
« on: March 26, 2011, 11:22:32 am »
Thanks Alot, TOPIC LOCKED!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
else if (strcmp(cmd, "puttovehicle", true) == 0) {
new snick[256], plr, vehicle[256], szMsg[256];
snick = strtok(cmdtext, idx), plr = FindPlayerIDFromString(snick), vehicle = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if(!IsPlayerCommandLevel(playerid,"sethp")) SendClientMessage(playerid, COLOR_RED, "You don't have access to use this command!");
else if (!strlen(vehicle)) SendClientMessage(playerid,COLOR_GREEN,"USAGE: /c puttovehicle [Nick/ID] [VehicleID]");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
format(szMsg,sizeof(szMsg),"Admin %s teleported:[ %s ] to vehicle:[ %d ]",gPlayers[playerid],gPlayers[plr],strval(vehicle));
SendClientMessageToAll(COLOR_GREEN,szMsg);
PutPlayerInVehicle(plr,strval(vehicle));
}
return 1;
}