29.08.2015, 13:07
how should it look like?
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!");
return 1;
}
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!");
return 1;
}