14.11.2014, 01:07
pawn Код:
CMD:up(playerid,params[])*
{*
**new*TargetID,*Amount,*Float:X,Float:Y,Float:Z;*
**if(!IsPlayerAdmin(playerid))*return*SendClientMessage(playerid,Red,"UnKnown*Command!*Type*/cmds");*
**if(sscanf(params,*"uI(10)",TargetID,Amount))*return*SendClientMessage(playerid,Red,"Move*up:*/up*<id>");*
**if(!IsPlayerConnected(TargetID))*return*SendClientMessage(playerid,Red,"Player*is*not*connected");*
**if(!IsPlayerInAnyVehicle(TargetID))*
**{*
****GetPlayerPos(TargetID,X,Y,Z);*
****SetPlayerPos(TargetID,X,Y,Z+Amount);*
**}*
**else*
**{*
****GetPlayerPos(TargetID,X,Y,Z);*
****SetVehiclePos(GetPlayerVehicleID(TargetID),X,Y,Z+Amount);*
}
**return*1;*
}**