29.08.2015, 13:09
PHP код:
CMD:carepackage(playerid, params[])
{
//if(pCarePackage[playerid][CarePackageUsed] == true) return SendClientMessage(playerid,0xFF0000FF,"Care package is already incomming");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,Float:X,Float:Y,Float:Z);
if(!CreateCarePackageForPlayer(playerid,Float:X,Fl oat:Y,Float:Z)) return SendClientMessage(playerid,0xFF0000FF,"Care package limit reached!");
SendClientMessageToAll(-1, 0xFFFFFFAA, "SERVER: A supply drop is on the way to the map!");
return 1;
}