08.07.2014, 17:00
PHP Code:
COMMAND:accepter(playerid,params[])
{
if(GetConnect(playerid) == 1)
{
new tmp[40], auxParams[124];
if(sscanf(params, "s[40]S()[124]", tmp, auxParams))
{
SendClientMessageEx(playerid, COLOR_INFO, "[Usage]: /accepter <commande>");
return 1;
}
if(strcmp(tmp, "aide", true)==0)
{
SendClientMessageEx(playerid, COLOR_INFO, "[Commande]: <mort>");
SetPlayerHealth(playerid,1.0);
return 1;
}
if(strcmp(tmp, "mort", true)==0)
{
if(MortInfo[playerid][mMort] == 1)
{
MortInfo[playerid][mMort] = 0;
SendClientMessageEx(playerid, COLOR_INFO, "Vous avez acceptй votre mort, vous allez respawn а l'hфpital dans 20 secondes");
SetPlayerPos(playerid,1312.5651,1231.63,1234.2234);
SetTimerEx("EndDeath",20000,0,"i",playerid);
return 1;
}
SendClientMessage(playerid,COLOR_ROUGE,"[Info]: Vous кtes pas mort");
}
return 1;
}
SendClientMessageEx(playerid, COLOR_ROUGE, "[Info]: Vous devez кtre connectй.");
return 1;
}