public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if( strcmp( \"/segély\", cmdtext, true ) == 0 )
{
if( GetTickCount( ) - GetPVarInt( playerid, \"iLastTick\" ) < 60000*60 )
{
SendClientMessage( playerid, 0xFF0000AA, \"Ezt a parancsot 1 óra elteltével tudod újra használni !\" );
}
else
{
SetPVarInt( playerid, \"iLastTick\", GetTickCount( ) );
//parancs
GivePlayerMoney(playerid, 1000000);
SendClientMessage(playerid, 0x33CCFFAA,\"Megkaptad a segélyt!\");
}
return 1;
}
return 0;
}